<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript"/>

  <title>
    File: 
  </title>
  <link rel='stylesheet' href='support/docgen.css' type='text/css'/>
  <link rel='stylesheet' href='support/tags.css' type='text/css'/>
  <script src='support/docgen.js' type='text/javascript' charset='utf-8'></script>
</head>
<body onload="onloadDoc();">

<div id='leftSide'>
  <div id='leftSideInside'>
  <div id='header'>
    <h2 class="button">Documentation</h2>
    <a href='toc.html'><div class="button2">Table of Contents</div></a>

    <a href='tree.html'><div class="button2">Class Inheritance Tree</div></a>

  </div>
  </div>
</div> <!-- leftSide -->

<div class='subprograms'>
  <div class='details'><ol><li id="l1"><pre><span class="keyword">with</span> <span class="droplink">Tictactoe.Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:1:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l1" title="To spec">To spec</a></li></ul></span>; <span class="keyword">use</span> <span class="droplink">Tictactoe.Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:1:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l1" title="To spec">To spec</a></li></ul></span>; </pre></li>
<li id="l2"><pre><span class="keyword">with</span> Ada.Text_IO;<span class="keyword">use</span> Ada.Text_IO; </pre></li>
<li id="l3"><pre><span class="keyword">package</span> <a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:3:9" title="defined at tictactoe-plateau.ads:3:9">Tictactoe.Plateau</a> <span class="keyword">is</span> </pre></li>
<li id="l4"><pre>   <span class="keyword">type</span> <span class="droplink">Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:4:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l24" title="To body">To body</a></li></ul></span> <span class="keyword">is</span> <span class="keyword">tagged</span> <span class="keyword">private</span>; </pre></li>
<li id="l5"><pre>   <span class="keyword">type</span> <a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="defined at tictactoe-plateau.ads:5:9">Pointeur_Plateau</a> <span class="keyword">is</span> <span class="keyword">access</span> <span class="droplink">Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:4:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l4" title="To spec">To spec</a></li><li><a href="src_tictactoe-plateau.ads.html#l24" title="To body">To body</a></li></ul></span>; </pre></li>
<li id="l6"><pre> </pre></li>
<li id="l7"><pre>   <span class="comment">-- La procedure [tracer] permet d&apos;inserer un pion dans un plateau</span> </pre></li>
<li id="l8"><pre>   <span class="keyword">procedure</span> <span class="droplink">Tracer<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:8:14" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l4" title="To body">To body</a></li></ul></span>(<a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:8:21" title="defined at tictactoe-plateau.ads:8:21">P_Plateau</a> : <span class="droplink">Pointeur_Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l5" title="To spec">To spec</a></li></ul></span> ; <a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:8:52" title="defined at tictactoe-plateau.ads:8:52">P_Ligne</a> : <span class="droplink">Ligne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:3:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l3" title="To spec">To spec</a></li></ul></span> ; <span class="droplink">P_Colonne<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:8:70" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l4" title="To body">To body</a></li></ul></span> : <span class="droplink">Colonne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:4:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l4" title="To spec">To spec</a></li></ul></span> ; <span class="droplink">P_Pion<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:8:92" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l4" title="To body">To body</a></li></ul></span> : <span class="droplink">Pion<ul><li><a href="tictactoe.ads.html#tictactoe.ads:2:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l2" title="To spec">To spec</a></li></ul></span> ); </pre></li>
<li id="l9"><pre>   <span class="comment">-- La procedure [liberer] permet de liberer un emplacement dans un plateau</span> </pre></li>
<li id="l10"><pre>   <span class="keyword">procedure</span> <span class="droplink">Liberer<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:10:14" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l20" title="To body">To body</a></li></ul></span>(<a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:10:22" title="defined at tictactoe-plateau.ads:10:22">P_Plateau</a> : <span class="droplink">Pointeur_Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l5" title="To spec">To spec</a></li></ul></span> ; <a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:10:53" title="defined at tictactoe-plateau.ads:10:53">P_Ligne</a> : <span class="droplink">Ligne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:3:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l3" title="To spec">To spec</a></li></ul></span> ; <span class="droplink">P_Colonne<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:10:71" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l20" title="To body">To body</a></li></ul></span> : <span class="droplink">Colonne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:4:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l4" title="To spec">To spec</a></li></ul></span>); </pre></li>
<li id="l11"><pre>    <span class="comment">-- La fonction [NouveauPlateau] retourne un nouveau plateau avec toutes les cases à vides</span> </pre></li>
<li id="l12"><pre>   <span class="keyword">function</span> <span class="droplink">NouveauPlateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:12:13" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l34" title="To body">To body</a></li></ul></span> <span class="keyword">return</span> <span class="droplink">Pointeur_Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l5" title="To spec">To spec</a></li></ul></span>; </pre></li>
<li id="l13"><pre>   <span class="comment">-- La fonction [EstPlein] test si le plateau ne contient aucune case vide</span> </pre></li>
<li id="l14"><pre>   <span class="keyword">function</span> <span class="droplink">EstPlein<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:14:13" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l50" title="To body">To body</a></li></ul></span>(<a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:14:22" title="defined at tictactoe-plateau.ads:14:22">P_Plateau</a> : <span class="droplink">Pointeur_Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l5" title="To spec">To spec</a></li></ul></span>) <span class="keyword">return</span> boolean; </pre></li>
<li id="l15"><pre>   <span class="comment">-- La fonction [Gagnant] test si le pion passer en parametre a gagné</span> </pre></li>
<li id="l16"><pre>   <span class="keyword">function</span> <span class="droplink">Gagnant<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:16:13" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l58" title="To body">To body</a></li></ul></span>(<a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:16:21" title="defined at tictactoe-plateau.ads:16:21">P_Plateau</a> : <span class="droplink">Pointeur_Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l5" title="To spec">To spec</a></li></ul></span>; <span class="droplink">P_Pion<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:16:51" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l58" title="To body">To body</a></li></ul></span> : <span class="droplink">Pion<ul><li><a href="tictactoe.ads.html#tictactoe.ads:2:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l2" title="To spec">To spec</a></li></ul></span>) <span class="keyword">return</span> boolean; </pre></li>
<li id="l17"><pre>   <span class="comment">-- La fonction [Get_Cellule] retourne un pointeur sur une cellule a une position donnée</span> </pre></li>
<li id="l18"><pre>   <span class="keyword">function</span> <span class="droplink">Get_Cellule<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:18:13" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l97" title="To body">To body</a></li></ul></span>(<a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:18:25" title="defined at tictactoe-plateau.ads:18:25">P_Plateau</a> : <span class="droplink">Pointeur_Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l5" title="To spec">To spec</a></li></ul></span> ; <a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:18:56" title="defined at tictactoe-plateau.ads:18:56">P_Ligne</a> : <span class="droplink">Ligne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:3:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l3" title="To spec">To spec</a></li></ul></span> ; <span class="droplink">P_Colonne<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:18:74" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.adb.html#l97" title="To body">To body</a></li></ul></span> : <span class="droplink">Colonne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:4:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l4" title="To spec">To spec</a></li></ul></span>) <span class="keyword">return</span> <span class="droplink">Pointeur_Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l5" title="To spec">To spec</a></li></ul></span>; </pre></li>
<li id="l19"><pre> </pre></li>
<li id="l20"><pre><span class="keyword">private</span> </pre></li>
<li id="l21"><pre>   <span class="comment">--Tableau à deux dimentions composé de lignes et de colonnes</span> </pre></li>
<li id="l22"><pre>   <span class="keyword">type</span> Tableau2D <span class="keyword">is</span> <span class="keyword">array</span>( <span class="droplink">Ligne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:3:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l3" title="To spec">To spec</a></li></ul></span>&apos;Range, <span class="droplink">Colonne<ul><li><a href="tictactoe.ads.html#tictactoe.ads:4:12" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l4" title="To spec">To spec</a></li></ul></span>&apos;Range) <span class="keyword">of</span> <span class="droplink">Pointeur_Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l5" title="To spec">To spec</a></li></ul></span>; </pre></li>
<li id="l23"><pre> </pre></li>
<li id="l24"><pre>   <span class="keyword">type</span> <span class="droplink">Plateau<ul><li><a href="tictactoe-plateau.ads.html#tictactoe-plateau.ads:4:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-plateau.ads.html#l4" title="To spec">To spec</a></li></ul></span> <span class="keyword">is</span> <span class="keyword">tagged</span> <span class="keyword">record</span> </pre></li>
<li id="l25"><pre>      Coordonnees : Tableau2D; </pre></li>
<li id="l26"><pre>      Etat : Natural := 0; </pre></li>
<li id="l27"><pre>   <span class="keyword">end</span> <span class="keyword">record</span>; </pre></li>
<li id="l28"><pre><span class="keyword">end</span>; </pre></li>
</ol></div>
</div>

</body>
</html>